import service from "../index";

//每日新型房源
export const getDayHomestay = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getDayHomestay",
  });
};

//每日注册用户
export const getDayUser = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getDayUser",
  });
};

//每日新增交易量
export const getDayOrder = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getDayOrder",
  });
};

//按天统计用户数
export const getUserByDay = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getUserByDay",
  });
};

//房源热度排行
export const getHotHomestay = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getHotHomestay",
  });
};

//按天统计订单数
export const getOrderByDay = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getOrderByDay",
  });
};

//每日新增评论
export const getCommentByDay = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getCommentByDay",
  });
};

//系统公告，订单
export const getSystemOrder = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getSystemOrder",
  });
};

//房源类型统计
export const getHomestayType = async () => {
  return await service({
    method: "get",
    url: "/visibleTable/getHomestayType",
  });
};
